#coding:utf-8

from  datetime  import  *
import  time

def githubTime(stringtime) :
    #datetime = "2017-04-26T10:11:00Z"
    res = stringtime.split('-')
    year = res[0]
    month = res[1]
    day = res[2][0:2]

    submitTime = date(int(year), int(month), int(day))
    nowTime = date.today()
    dayDiff = nowTime - submitTime
    # print submitTime
    return dayDiff.days


